package com.bst.bsj.bops.web.biz.impl;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bst.bsj.bops.web.biz.SeedlingTypeModelParamsRelationService;
import com.bst.bsj.common.dal.daointerface.SeedlingTypeModelParamsRelationDAO;
import com.bst.bsj.common.dal.dataobject.SeedlingTypeModelParamsRelation;

@Service("seedlingTypeModelParamsRelationService")
public class SeedlingTypeModelParamsRelationServiceImpl implements SeedlingTypeModelParamsRelationService {

  private static final Log logger = LogFactory.getLog(SeedlingTypeModelParamsRelationServiceImpl.class);

  @Autowired
  private SeedlingTypeModelParamsRelationDAO modelParamsRelationDAO;

  @Override
  public int delete(Long id) {
    int lid = 0;
    try {
      lid = modelParamsRelationDAO.delete(id);
    } catch (Exception e) {
      logger.error("SeedlingTypeModelParamsRelationServiceImpl.delete(banner) error!", e);
    }
    return lid;
  }

  @Override
  public void insert(SeedlingTypeModelParamsRelation modelParamsRelation) {
    try {
      modelParamsRelationDAO.insert(modelParamsRelation);
    } catch (Exception e) {
      logger.error("SeedlingTypeModelParamsRelationServiceImpl.insert(banner) error!", e);
    }
  }

}
